/**
 *  @author amalafe
 */

Namespace("sketch.ui.iphone");

(function(){
	// using
	var iphone = sketch.ui.iphone,
		fwk = sketch.framework;
	
	iphone.phone = klass(fwk.ImageElement, {
		_callSuper:false,
		_constructor:function(){
			iphone.phone.SuperConstructor.call(this, 'img/iphone.png', 260, 512);
		},
		getSnapPoints:function(){
			var left = this.left(),
				top = this.top(),
                width = this.width(),
                height = this.height();
				
			return {
				xs:[left, left + 21, left + 240, left + this.width()],
				ys:[top, top + 92, top + 421, top + this.height()],
                center:{x:left+width/2, y:top+height/2}
			}
		},
        getType:function(){
            return "iPhone.phone";
        }
	});
	
})();
